package com.snake.excel2java.excel.common.row;

import org.apache.poi.xssf.usermodel.XSSFRow;

import com.snake.excel2java.excel.ExcelRowLoader;

import com.snake.excel2java.excel.StringType;

import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
public abstract class GroupRow extends ExcelRowLoader {

	//Group=int,id,ID#int,groupId,组id#int,shopId,商品Id#int,weight,权重#int,rank,品级

	protected int id;		//ID
	protected int groupId;		//组id
	protected int shopId;		//商品Id
	protected int weight;		//权重
	protected int rank;		//品级


	protected void doLoad(XSSFRow row, int[] dataIndex) {

		int colIndex = 0;

		id = readInt(row, dataIndex[colIndex++]);
		groupId = readInt(row, dataIndex[colIndex++]);
		shopId = readInt(row, dataIndex[colIndex++]);
		weight = readInt(row, dataIndex[colIndex++]);
		rank = readInt(row, dataIndex[colIndex++]);
	}

}